Change struct¶
Attributes: [DebuggerDisplay("Change: {Reason}")]
Defined in
Namespace: ReactiveList.Reactive.Core Assembly: ReactiveList.Reactive.dll Full name: ReactiveList.Reactive.Core.Change<T> Modifiers: public sealed
Summary¶
View source (opens in a new tab)
Represents a single change in a reactive collection.
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Class hierarchy
classDiagram
class Change~T~
class IEquatable~Change~T~~ {
<>
}
IEquatable~Change~T~~ <|.. Change~T~
Implements: IEquatable
Remarks¶
This is a struct-based change notification to minimize heap allocations.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the Change class. |
Properties¶
| Name | Summary |
|---|---|
| Reason | Gets the reason for the change. |
| Current | Gets the current/new item value. |
| Previous | Gets the previous item value. Only populated for Update operations. |
| CurrentIndex | Gets the current index of the item in the collection, or -1 if not applicable. |
| PreviousIndex | Gets the previous index of the item. Only populated for Move operations. |
Methods¶
| Name | Summary |
|---|---|
| static CreateAdd | Creates an Add change. |
| static CreateRemove | Creates a Remove change. |
| static CreateUpdate | Creates an Update change. |
| static CreateMove | Creates a Move change. |
| static CreateRefresh | Creates a Refresh change. |
| ToString | Returns the fully qualified type name of this instance. |
| GetHashCode | Returns the hash code for this instance. |
| Equals | Indicates whether this instance and a specified object are equal. |
Operators¶
| Name | Summary |
|---|---|
| static op_Inequality | |
| static op_Equality |